package// ActionScript file
{
	import Classes.GameUtils.StyleManager;
	
	import UIComponents.UIMain;
	
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.net.URLRequest;
	import flash.system.ApplicationDomain;
	import flash.system.LoaderContext;

	public class UIPackageTest extends Sprite
	{
		public function UIPackageTest():void
		{
			var urlRequest:URLRequest=new URLRequest("UIPackage.swf");
			var loader:Loader=new Loader();
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadOverHandler);
			loader.load(urlRequest,new LoaderContext(false,ApplicationDomain.currentDomain));
		}
		
		private function loadOverHandler(e:Event):void
		{
			var testUI:Sprite=new (ApplicationDomain.currentDomain.getDefinition("UIMain_v") as Class);
			this.addChild(testUI);
			testUI["showPlayerLv"](10);
			testUI["showExp"](100,350);
			testUI["showActPoint"](10,40);
		}
	}
}